<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>采购详情</title>
</head>
{$LOAD_STYLE.top|raw}
<body>
<style>
    .orderprint{
        margin: 30px;
    }
    .f-title{
        font-size: 22px;
        font-weight: bold;
        text-align: center;
    }
    .top-info div{
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
    }
    .layui-table th,td{
        text-align: center;
    }
</style>
  <div class="orderprint">
      <div class="top">
		<div class="f-title">生华布行采购明细单</div>
      </div>
      <div class="top-info">
          <div>订单号：{$T.pur_sn} </div>
          <div>
              <div>业务员：{$staff_name}</div>
              <div>{$T.create_time|date="Y年m月d日"}</div>
          </div>
      </div>
      <table class="layui-table">
        <thead>
          <tr>
            <th width="6%">编号</th>
            <th width="12%">品名</th>
            <th width="6%">色号</th>
            <th width="6%">颜色名</th>
            <th width="6%">颜色</th>
            <th width="5%">数量</th>
            <th width="5%">单位</th>
            <th width="8%">来货空差</th>
            <th width="6%">供应商</th>
            <th width="6%">供应编号</th>
            <th width="6%">供应色号</th>
            <th width="8%">提货方式</th>
            <th width="6%">物流</th>
            <th width="10%">备注</th>
          </tr>
        </thead>
        <tbody>
           {volist name="Tinfo" id="v"}
            <tr>
                <td>{$v.fabric_code}</td>
                <td style="text-align:left; padding:0px 5px;">{$v.fabric_name}</td>
                <td>{$v.color_code}</td>
                <td>{$v.color_name}</td>
                <td style="background:#{$v.color_hex}"></td>
                <td>{$v.count}</td>
				<td>{$v.unit}</td>
                <td>{$v.pur_kind==2?$v.sup_empty:''}</td>
                <td>{$v.sup_name}</td>
                <td>{$v.sup_code}</td>
                <td>{$v.sup_color}</td>
                <td>{$v.exp_method}</td>
                <td>{$v.exp_name}</td>
                <td>{$v.remark}</td>
            </tr>
            {/volist}
            {php}
            $len=10-count($Tinfo);
            if($len>0){
              for($i=0;$i<=$len;$i++){
                echo '<tr><td>&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
              }
            }
            {/php}
        </tbody>
        <tfoot>
        </tfoot>
      </table>
  </div>

{$LOAD_STYLE.bottom|raw}
</body>
</html>